xen/arm: p2m: Export p2m_*_lock helpers
authorJulien Grall <julien.grall@arm.com>
Thu, 15 Sep 2016 11:28:39 +0000 (12:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Sep 2016 01:14:22 +0000 (18:14 -0700)
commitbf1bb6b7319a93adadc51a242db1e9e76ab48150
tree61016942df962e197c67592411c05219c3c1d754
parent183c6921efaffa092d4461f44d2c0388611b27c9
xen/arm: p2m: Export p2m_*_lock helpers

Earlier patches exported the p2m interface (p2m_get_entry and
p2m_set_entry) to allow splitting xen/arch/arm/p2m.c. Those functions
require the callers to lock the p2m, so we need to export p2m_*_lock
helpers.

All helpers but p2m_write_unlock but p2m_write_unlock are moved in
xen/include/asm-arm/p2m.h to allow inlining. The helpers
p2m_write_unlock is kept in p2m.c because it depends on a static
function.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/arm/p2m.c
xen/include/asm-arm/p2m.h